package com.gaswell.aop.source;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName AopTest
 * @Author xiaow
 * @DATE 2024/4/14 12:43
 **/

public class AopTest {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("aspect.xml");
        Person student = (Person) ac.getBean("student");
        NonAOPStudent noaopstudent = (NonAOPStudent) ac.getBean("noaopstudent");

        student.study();
    }
}
